package com.lesso.cyg.sunflower.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDate;

/**
 * <p>
 * 员工基础信息
 * </p>
 *
 * @author cyg
 * @since 2025-07-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("base_employee")
public class Employee extends BaseModel<Employee> {

    private static final long serialVersionUID = 1L;

    public static final String NAME = "name";

    /**
     * 员工工号
     */
    @TableField("employee_no")
    private String employeeNo;

    /**
     * 员工姓名
     */
    private String name;

    /**
     * 身份证号
     */
    @TableField("id_card")
    private String idCard;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 入职日期
     */
    @TableField("entry_date")
    private LocalDate entryDate;

    /**
     * 在职状态，1在职，0离职
     */
    @TableField("employment_status")
    private Integer employmentStatus;

    /**
     * 0正常，1删除
     */
    @TableField("del_status")
    @TableLogic
    private Integer delStatus;
}